package guoanmaker.operator.business.service;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import guoanmaker.operator.business.model.OperatorLoginAdminInformation;
import guoanmaker.operator.business.repository.OperatorLoginAdminInformationRepository;

@Service
public class OperatorLoginAdminInformationService implements OperatorLoginAdminInformationServiceIntegerface {
	@Autowired
	private OperatorLoginAdminInformationRepository operatorLoginAdminInformationRepository;

	@Override
	@Transactional
	public OperatorLoginAdminInformation saveAdminInformation(
			OperatorLoginAdminInformation operatorLoginAdminInformation) {
		// TODO Auto-generated method stub
		return operatorLoginAdminInformationRepository.save(operatorLoginAdminInformation);
	}

	@Override
	public OperatorLoginAdminInformation getAdminInformationById(String id) {
		// TODO Auto-generated method stub
		return operatorLoginAdminInformationRepository.selectOperatorLoginAdminInformationById(id);
	}

}
